package com.fyl.factory;

import com.fyl.dao.UserDao;
import com.fyl.dao.impl.UserDaoImpl;

public class MyBeanFactory2 {
    public MyBeanFactory2(String name) {
        System.out.println("MyBeanFactory2的构造函数");
    }

    public UserDao userDao (String name) {
        //Bean创建之前可以进行一些其他业务逻辑操作
        return new UserDaoImpl();
    }
}
